<?php
error_reporting(0);
include ('common/connection.php');
$queryUser="SELECT max(id) as id FROM `users`";
$resultUser=mysql_db_query($db_name,$queryUser);
$rsUser=mysql_fetch_array($resultUser);

$group=$_REQUEST['group'];
$batch=$_REQUEST['batch'];
$gender=$_REQUEST['gender'];
$full_name=$_REQUEST['full_name'];
$nick_name=$_REQUEST['nick_name'];
$cell_phone=$_REQUEST['cell_phone'];
$spouse=$_REQUEST['spouse'];
$spousein=$_REQUEST['spousein'];
$occupation=$_REQUEST['occupation'];
$email=$_REQUEST['email'];
$address=$_REQUEST['address'];
$amount=$_REQUEST['amount'];
$kids=$_REQUEST['kids'];


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="cnfrmStyle.css" />
<link rel="stylesheet" href="formStyle.css" type="text/css" />
<link rel="stylesheet" href="tomal_style.css" type="text/css" />
<link rel="stylesheet" href="style_countdown.css" type="text/css" />
<script language="javascript">
function backs()
{
	location.href="<?php echo "index.php?group=$group&batch=$batch&gender=$gender&full_name=$full_name&nick_name=$nick_name&cell_phone=$cell_phone&cell_phone1=$cell_phone1&email=$email&address=$address&amount=$amount&spouse=$spouse&spousein=$spousein&spouse=$spouse&occupation=$occupation"?>";
}
</script>
<script src="jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery.countdown.pack.js"></script>

<script type="text/javascript">
$(function () {
$('#countdown').countdown({until:$.countdown.UTCDate(+6, 2012,  3 - 1, 23), format: 'DHMS', layout: 
	  '<div id="timer">' +
		  '<div id="timer_days" class="timer_numbers">{dnn}</div>'+
		  '<div id="timer_hours" class="timer_numbers">{hnn}</div>'+ 
		  '<div id="timer_mins" class="timer_numbers">{mnn}</div>'+
		  '<div id="timer_seconds" class="timer_numbers">{snn}</div>'+
		'<div id="timer_labels">'+
			'<div id="timer_days_label" class="timer_labels">days</div>'+
			'<div id="timer_hours_label" class="timer_labels">hours</div>'+
			'<div id="timer_mins_label" class="timer_labels">mins</div>'+
			'<div id="timer_seconds_label" class="timer_labels">secs</div>'+
		'</div>'+							
	'</div>'
						  
});
});
</script>

<script type="text/javascript">
function document_valid(num){

	if(num==1 || num==2){
		document.getElementById("sub_box5").style.display="none";
		document.getElementById("sub_box5_1").style.display="none";
		document.getElementById("sub_box4").style.display="block";
		document.getElementById("sub_box4_1").style.display="block";
	}
	if(num==3){
		document.getElementById("sub_box4").style.display="none";
		document.getElementById("sub_box4_1").style.display="none";
		document.getElementById("sub_box5").style.display="block";
		document.getElementById("sub_box5_1").style.display="block";
	}
	
		
	}
</script>

<title>Home</title>
</head>



<body>
<div id="main_div">
<form name="regis" action="regis_do.php" method="post" enctype="multipart/form-data">
	<div id="main_div_upper_shadow"></div><!-- end of main_div_upper_shadow-->
    <div id="main_div_upper_black"></div><!-- end of main_div_upper_black-->
    
    <div id="main_div_banner_top">
    	<!--<img src="images/banner.jpg" />--><!-- end of header1-->
        
    </div><!-- end of main_div_banner_top-->
     <div class="black_search_box"><a href="#">Already Registered</a></div>
    <div id="middle_black_body">
    	<p class="countdown_header">Time Left for Reunion</p>
        <p class="registration_header">Total Registered</p>
		<?php 
			$origi=$rsUser['id']; 
			$total=(100+$origi);
			if($total<1000){$total="0".$total;}			
		?>
        <div class="total_registered"><img src="images/total_registerd.PNG" /><p><?php echo $total;?></p></div>
    	<div id="countdown"></div>
    
    <!--
    	<div class="venue1">
        	<p style=" color:#FF4B00; font-weight:bold; margin-bottom:-21px;">Date</p>
            <p style=" color:#FFF; font-weight:bold;">27 January 2012</p>
        </div>
        <div class="venue2">
        	<p style=" color:#FF4B00; font-weight:bold; margin-bottom:-21px;">Venue</p>
            <p style=" color:#FFF; font-weight:bold;">Bangabandhu International Conference Centre</p>
        </div>
        <div class="venue3">
        	<p style=" color:#FF4B00; font-weight:bold; margin-bottom:-21px;">Time</p>
            <p style=" color:#FFF; font-weight:bold;">3pm - 11pm</p>
        </div>-->
    </div><!-- end of middle_black_body -->
    
    <div id="after_middle_black_body">
   		<div id="after_middle_curvy_top"></div>
        <div id="after_middle_normal_body">
        	<p class="header_p1" style="font-size:24px !important;">Please Verify the Following Information and Submit</p>
            
            <div class="container" style="style="width: 883px !important;  margin-left:3px;"">
                           
                     <table cellspacing="0" cellpadding="0" border="0" style="margin-left:227px;"> 
					 <br /> 
						<tr>
                            <td valign="top" class="cnfrmemail_td1"> Group: </td>
                            <td valign="top" class="cnfrmemail_td2">
								<?php 
									$group=$_POST['group']; 
									if($group==1){echo "Science";}
									elseif($group==2){echo "Commerce";}
									elseif($group==3){echo "Arts";}									
								?>
							</td>
    					</tr><tr>

                            <td valign="top" class="cnfrmemail_td1"> Batch: </td>
                            <td valign="top" class="cnfrmemail_td2"><?php echo $_POST['batch'];?></td>
   						</tr><tr>

                            <td valign="top" class="cnfrmemail_td1"> Gender: </td>
                            <td valign="top" class="cnfrmemail_td2">
								<?php $gender=$_POST['gender']; if($gender==1){echo "Male";}else{echo "Female";}?> 
							</td>
                        </tr>            
                        <tr>
                            <td valign="top" class="cnfrmemail_td1"> Name: </td>
                            <td class="cnfrmemail_td2" valign="top"><?php echo $_POST['full_name'];?></td>
                         </tr><tr>       
                            <td class="cnfrmemail_td1" valign="top"> Nickname: </td>
                            <td class="cnfrmemail_td2" valign="top"><?php echo $_POST['nick_name'];?></td>
                        </tr>
                        
                        <tr>
                            <td class="cnfrmemail_td1" valign="top"> Cell No: </td>
                            <td class="cnfrmemail_td2" valign="top"><?php echo $_POST['cell_phone'];?></td>
                        </tr><tr <?php if($_POST['cell_phone1']==''){?> style="display:none"<?php }?>>     
                            <td class="cnfrmemail_td1" valign="top"> Alternate Cell No: </td>
                            <td class="cnfrmemail_td2" valign="top"><?php echo $_POST['cell_phone1'];?></td>
                        </tr>
                        
                        <tr>
                            <td class="cnfrmemail_td1" valign="top"> Email</td>
                            <td class="cnfrmemail_td2" valign="top"><?php echo $_POST['email'];?></td> 
                        </tr>
                        <tr>
                            <td class="cnfrmemail_td1" valign="top"> Postal Address </td>
                            <td class="cnfrmemail_td2" colspan="3px" valign="top"><?php echo $_POST['address'];?></td>  
                        </tr>
                        <tr>
							<td class="cnfrmemail_td1" valign="top"> Registered for Spouse: </td>
							<td class="cnfrmemail_td2" colspan="3px" valign="top">
								<?php if($_POST['spousein']==1){echo "Yes";}?>
								<?php if($_POST['spousein']==2){echo "No";}?>
							</td>
						</tr>
                        <?php
							if($_POST['spousein']==1){
						?>
						<tr>
							<td class="cnfrmemail_td1" valign="top"> Spouse Name: </td>
							<td class="cnfrmemail_td2" colspan="3px" valign="top">
							<?php
								echo $spouse;
							?>
							</td>
						</tr>
                        
                        <?php 
							}
							if($kids!=0){
						?>
                        <tr>
							<td class="cnfrmemail_td1" valign="top"> No of Kids: </td>
							<td class="cnfrmemail_td2" colspan="3px" valign="top">
								<?php echo $kids;?>
							</td>
						</tr>
                        <?php 
							}
                        ?>
                        <tr>
							<td class="cnfrmemail_td1" valign="top"> Amount: </td>
							<td class="cnfrmemail_td2" colspan="3px" valign="top">
								<?php
									$amount=500;
									$member=1;
									if($spousein==1){$amount=$amount+300;$member=$member+1;}
									if($kids!=0||$kids!=''){$amount=$amount+($kids*300);$member=$member+$kids;}
									echo $amount;
								?>
							</td>
						</tr>
                        <tr>
                            <td valign="top" width="115px;;"> Photographs </td>
                            <td colspan="2">
								<input type="file" name="photo"  />
							    <p class="formText">Please upload jpg/gif image less than 2MB.</p> 
							</td>  
                        </tr> 
                        <tr>
							<td class="cnfrmemail_td1" valign="top"> &nbsp;</td>
							<td class="cnfrmemail_td2" colspan="3px" valign="top">
								&nbsp;
							</td>
						</tr>

                	</table>
                    
                    
            </div><!-- end of container -->
            
           
            <div class="box4">
                <br />
                  
                    <input type="submit" value="Submit" class="oxava" style="margin-right:10px;"/>
					<input type="hidden" name="origin" value="<?php echo $_POST['origin'];?>" />
					<input type="hidden" name="group" value="<?php echo $_POST['group'];?>" />
					<input type="hidden" name="batch" value="<?php echo $_POST['batch'];?>" />
					<input type="hidden" name="gender" value="<?php echo $_POST['gender'];?>" />
					<input type="hidden" name="full_name" value="<?php echo $_POST['full_name'];?>" />
					<input type="hidden" name="nick_name" value="<?php echo $_POST['nick_name'];?>" />
					<input type="hidden" name="cell_phone" value="<?php echo $_POST['cell_phone'];?>" />
					<input type="hidden" name="cell_phone1" value="<?php echo $_POST['cell_phone1'];?>" />
					<input type="hidden" name="email" value="<?php echo $_POST['email'];?>" />
					<input type="hidden" name="address" value="<?php echo $_POST['address'];?>" />
					<input type="hidden" name="amount" value="<?php echo $amount;?>" />
					<input type="hidden" name="spouse" value="<?php echo $_POST['spouse'];?>" />
                    <input type="hidden" name="member" value="<?php echo $member;?>" />
                   <input type="button" value="Back" onclick="return backs()" class="oxava"/>
                
                <div class="p_box_3"><p>You Will Receive Registration Confirmation Email With Payment Point Information.</p></div>
            </div>	
            
            
            
        
        </div>
        <div id="after_middle_curvy_bottom"></div>
    </div><!-- end of after_middle_black_body -->
</form>    
</div><!-- end of main_div -->
<div class="webpers_logo">
	<p class="copy_right">&copy; 2012, all right reserverd to <a href="https://www.webpers.com" style="color:#0066FF; font-weight:bold;">2008 Batch</a></p>
    <div class="left_static_1">
        
        <ul>
        	<li><p class="powered_by">Powered By <a href="http://www.webpers.com" style="color:#0066FF; font-weight:bold;"> webpers.com </a></p></li>
            <li><a href="http://www.webpers.com" style="overflow:hidden"><div class="webpers"></div></a></li>
            <li><a href="https://www.facebook.com/pages/Webpers/245892612091499" style="overflow:hidden"><div class="webpers_facebook"></div></a></li>
            <li><a href="#" style="overflow:hidden"><div class="webpers_twitter"></div></a></li>
        </ul>
        
        
        
    </div>
</div>
<script type="text/javascript" />
function blink(selector){
$(selector).fadeOut(500, function(){
    $(this).fadeIn(500, function(){
        blink(this);
    });
});
}



blink('#blink_2');
blink('#blinking_info');
</script>
            
            
        
        </div>
        
    </div><!-- end of after_middle_black_body -->
    
</div><!-- end of main_div -->
</body>
</html>
